package com.yzg.controller;

import com.yzg.pojo.FlashPromotionSession;
import com.yzg.service.FlashPromotionSessionService;
import com.yzg.utils.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @author 杨鹏
 * @Date 项目创建日期为 2021/1/15
 * @copyright 项目版权归作者所有
 */
@RestController
@RequestMapping("/flashSession")
public class FlashPromotionSessionController {

    @Autowired
    private FlashPromotionSessionService flashPromotionSessionService;


    //添加商品到限时购场次列表展示
    @GetMapping("/selectList")
    @ApiOperation(value = "添加商品到秒杀活动列表展示(设置商品)")
    public R selectList(Long flashPromotionId){
       Map<String,Object> map= flashPromotionSessionService.selectList(flashPromotionId);
       return R.ok().data(map);
    }

}
